import sys
is_windows = sys.platform.startswith('win')

from base import expect

import logging
from .utility import ExpectLoggingFormatter, NullHandler

logger = logging.getLogger(__name__)
null_handler = NullHandler()
null_handler.setLevel(logging.DEBUG)
formatter = ExpectLoggingFormatter()
null_handler.setFormatter(formatter)
logger.addHandler(null_handler)

# Here's how to log to the console:
# console_handler = logging.StreamHandler()
# console_handler.setLevel(logging.DEBUG)
# formatter = ExpectLoggingFormatter()
# console_handler.setFormatter(formatter)
# logger.addHandler(console_handler)